package com.naiterui.ehp.bs.pharmacist.vo.user;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.validation.annotation.Validated;

import lombok.Builder;
import lombok.Data;

/**
 * @author guoyongxiang
 * @date 2019/12/2 11:36
 * @since 1.0.0
 */
@Validated
@Builder
@Data
public class SignUserParamVO {

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotEmpty(message = "手机号码不能为空")
    private String phone;

    @NotEmpty(message = "姓名不能为空")
    private String name;

    @NotEmpty(message = "身份号码不能为空")
    private String idCard;

    /**
     * 签名图片地址，同步到签名账户表
     */
    private String sealImagePath;

    @NotEmpty(message = "执业医院号码不能为空")
    private String hospital;

    @NotEmpty(message = "初始密码不能为空")
    private String pwd;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
